package com.webside.advertisement.service;


import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.webside.advertisement.model.AdvertisementEntity;
import com.webside.series.model.Bdictionary;
import com.webside.series.model.SeriesEntity;
import com.webside.util.PageUtil;

public interface AdvertisementService {

	//<!-- editUI查询 -->
  	public AdvertisementEntity findById(Long id);
    //<!-- 修改 -->
  	public int update(AdvertisementEntity advertisementEntity);
    //<!-- 刪除 -->
    public int deleteBatchById(List<Long> id);
    //<!-- 添加 -->
    public int insert(AdvertisementEntity advertisementEntity);
    //<!-- list查询 -->
  	public List<AdvertisementEntity> queryListByPage(Map<String, Object> parameter);
  	//查询指定字典类型
  	public List<Bdictionary> querytype(Bdictionary bdictionary);
  	//查询剧集总数
  	public int queryAllSeries();
  	//分页查询剧集
  	public List<SeriesEntity> querySeries(PageUtil pageUtil,String sort);
  	//修改状态
  	public int updatestatus(AdvertisementEntity advertisementEntity);
  	//查询总数
  	public int querycount(String sort);
  	//分页及按关键词搜索
  	public List<HashMap<String,Object>> queryAd(PageUtil pageUtil, String sort,String code);
  	
}